<template>
    <div class="block">
    <!-- <span class="demonstration">完整功能</span> -->
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pagenum"
      :page-sizes="[5, 10, 20, 30]"
      :page-size="pagesize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>
<script>
export default {
    props:['pagesize','pagenum','total'],
    data() {
        return {
            
        };
    },
    mounted() {
        
    },
    methods: {
        handleSizeChange(val) {
          this.$emit('handpagesize',val)
      },
      handleCurrentChange(val) {
        this.$emit('handpagenum',val)
      }
    },
};
</script>

<style  scoped>

</style>